<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=var a, b, c;, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        var a, b, c;
        for (var a = 1; a <= 5; a++) {
            for (var c = 1; c <= 5 - a; c++) {
                document.write("&nbsp")
            }
            for (var b = 1; b <= a; b++) {
                document.write("* ")
            }
            document.write("<br>")
        }
        //平行四边形- -别宇航219971301
        var d, e, f;
        for (var d = 1; d <= 5; d++) {
            for (var f = 1; f < 5 - d + 1; f++) {
                document.write("&nbsp")
            }
            for (e = 1; e <= 5; e++) {
                document.write("* ")
            }
            document.write("<br>")
        }
        //菱形--别宇航219971301
        var x, y, z;
        for (var x = 1; x <= 3; x++) {
            for (var z = 1; z < 6 - 2 * x + 1; z++) {
                document.write("&nbsp")
            }
            for (var y = 1; y <= 2 * x - 1; y++) {
                document.write("* ")
            }
            document.write("<br>")
        }
        for (var x = 1; x <= 2; x++) {
            for (var z = 1; z <= 2 * x; z++) {
                document.write("&nbsp")
            }
            for (var y = 1; y <= 5 - 2 * x; y++) {
                document.write("* ")
            }
            document.write("<br>")
        }
    </script>
</body>

</html>